package com.zlt.appparking.entity;

import java.util.ArrayList;
import java.util.List;

public class LicenseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LicenseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLIdIsNull() {
            addCriterion("l_id is null");
            return (Criteria) this;
        }

        public Criteria andLIdIsNotNull() {
            addCriterion("l_id is not null");
            return (Criteria) this;
        }

        public Criteria andLIdEqualTo(Long value) {
            addCriterion("l_id =", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdNotEqualTo(Long value) {
            addCriterion("l_id <>", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdGreaterThan(Long value) {
            addCriterion("l_id >", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdGreaterThanOrEqualTo(Long value) {
            addCriterion("l_id >=", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdLessThan(Long value) {
            addCriterion("l_id <", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdLessThanOrEqualTo(Long value) {
            addCriterion("l_id <=", value, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdIn(List<Long> values) {
            addCriterion("l_id in", values, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdNotIn(List<Long> values) {
            addCriterion("l_id not in", values, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdBetween(Long value1, Long value2) {
            addCriterion("l_id between", value1, value2, "lId");
            return (Criteria) this;
        }

        public Criteria andLIdNotBetween(Long value1, Long value2) {
            addCriterion("l_id not between", value1, value2, "lId");
            return (Criteria) this;
        }

        public Criteria andLNumIsNull() {
            addCriterion("l_num is null");
            return (Criteria) this;
        }

        public Criteria andLNumIsNotNull() {
            addCriterion("l_num is not null");
            return (Criteria) this;
        }

        public Criteria andLNumEqualTo(String value) {
            addCriterion("l_num =", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotEqualTo(String value) {
            addCriterion("l_num <>", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumGreaterThan(String value) {
            addCriterion("l_num >", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumGreaterThanOrEqualTo(String value) {
            addCriterion("l_num >=", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumLessThan(String value) {
            addCriterion("l_num <", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumLessThanOrEqualTo(String value) {
            addCriterion("l_num <=", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumLike(String value) {
            addCriterion("l_num like", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotLike(String value) {
            addCriterion("l_num not like", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumIn(List<String> values) {
            addCriterion("l_num in", values, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotIn(List<String> values) {
            addCriterion("l_num not in", values, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumBetween(String value1, String value2) {
            addCriterion("l_num between", value1, value2, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotBetween(String value1, String value2) {
            addCriterion("l_num not between", value1, value2, "lNum");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNull() {
            addCriterion("au_id is null");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNotNull() {
            addCriterion("au_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuIdEqualTo(String value) {
            addCriterion("au_id =", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotEqualTo(String value) {
            addCriterion("au_id <>", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThan(String value) {
            addCriterion("au_id >", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThanOrEqualTo(String value) {
            addCriterion("au_id >=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThan(String value) {
            addCriterion("au_id <", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThanOrEqualTo(String value) {
            addCriterion("au_id <=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLike(String value) {
            addCriterion("au_id like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotLike(String value) {
            addCriterion("au_id not like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdIn(List<String> values) {
            addCriterion("au_id in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotIn(List<String> values) {
            addCriterion("au_id not in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdBetween(String value1, String value2) {
            addCriterion("au_id between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotBetween(String value1, String value2) {
            addCriterion("au_id not between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andLStateIsNull() {
            addCriterion("l_state is null");
            return (Criteria) this;
        }

        public Criteria andLStateIsNotNull() {
            addCriterion("l_state is not null");
            return (Criteria) this;
        }

        public Criteria andLStateEqualTo(Byte value) {
            addCriterion("l_state =", value, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateNotEqualTo(Byte value) {
            addCriterion("l_state <>", value, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateGreaterThan(Byte value) {
            addCriterion("l_state >", value, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("l_state >=", value, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateLessThan(Byte value) {
            addCriterion("l_state <", value, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateLessThanOrEqualTo(Byte value) {
            addCriterion("l_state <=", value, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateIn(List<Byte> values) {
            addCriterion("l_state in", values, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateNotIn(List<Byte> values) {
            addCriterion("l_state not in", values, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateBetween(Byte value1, Byte value2) {
            addCriterion("l_state between", value1, value2, "lState");
            return (Criteria) this;
        }

        public Criteria andLStateNotBetween(Byte value1, Byte value2) {
            addCriterion("l_state not between", value1, value2, "lState");
            return (Criteria) this;
        }

        public Criteria andLPathIsNull() {
            addCriterion("l_path is null");
            return (Criteria) this;
        }

        public Criteria andLPathIsNotNull() {
            addCriterion("l_path is not null");
            return (Criteria) this;
        }

        public Criteria andLPathEqualTo(String value) {
            addCriterion("l_path =", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathNotEqualTo(String value) {
            addCriterion("l_path <>", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathGreaterThan(String value) {
            addCriterion("l_path >", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathGreaterThanOrEqualTo(String value) {
            addCriterion("l_path >=", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathLessThan(String value) {
            addCriterion("l_path <", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathLessThanOrEqualTo(String value) {
            addCriterion("l_path <=", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathLike(String value) {
            addCriterion("l_path like", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathNotLike(String value) {
            addCriterion("l_path not like", value, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathIn(List<String> values) {
            addCriterion("l_path in", values, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathNotIn(List<String> values) {
            addCriterion("l_path not in", values, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathBetween(String value1, String value2) {
            addCriterion("l_path between", value1, value2, "lPath");
            return (Criteria) this;
        }

        public Criteria andLPathNotBetween(String value1, String value2) {
            addCriterion("l_path not between", value1, value2, "lPath");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}